home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 2875 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  848 b 

  1. Path: crl.crl.com!not-for-mail
  2. From: bobfry@crl.com (Robert Fry)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Hot to choose the seed for RNG ?
  5. Date: 24 Jan 1996 09:08:38 -0800
  6. Organization: CRL Dialup Internet Access
  7. Message-ID: <4e5p2m$5q6@crl.crl.com>
  8. References: <4e51h8$l90@centre.univ-orleans.fr>
  9. NNTP-Posting-Host: crl.com
  10.  
  11. emmguyot@desiree.univ-orleans.fr (Emmanuel GUYOT) writes:
  12.  
  13. >How to choose the seed to initialize RNG ?
  14. >Should the seed have special properties (prime number, ...) ? 
  15.  
  16. This depends on the generator and the initializer. If properly written 
  17. (which is /not/ guaranteed), the initialization routine should work well 
  18. whatever you pass to it. The only thing you are likely to want to keep in 
  19. mind is that it should be idfferent each time you initialize -- most 
  20. people simply call time() to get the current (system) time.
  21.  
  22.   Bob
  23.